@charset "utf-8";
@import './heightlight.scss';

body {
  background: #f4f5f5;
  padding: 50px 100px;
}

main {
  padding: 20px;
  width: 100%;
  background: #ffffff;
  h4 {
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
    line-height: 30px;
  }
  .div-show {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
  }
  .lists1 {
    .box {
      width: 200px;
      height: 200px;
      transition: all 0.3s;
      img {
        width: 100%;
      }
      &:hover {
        transform: translateY(-5px);
      }
    }
  }
  .lists2 {
    .box {
      width: 200px;
      height: 200px;
      transition: all 0.3s;
      img {
        width: 100%;
      }
      &:hover {
        transform: scale(1.03);
      }
    }
  }
  .lists3 {
    .box {
      width: 200px;
      height: 200px;
      overflow: hidden;
      img {
        width: 100%;
        transition: all 0.3s;
      }
      &:hover img {
        transform: scale(1.1);
      }
    }
  }
  .lists4 {
    .box {
      width: 200px;
      height: 200px;
      overflow: hidden;
      background-color: #4f4f4f;
      img {
        width: 100%;
        transition: all 0.3s;
      }
      &:hover img {
        opacity: 0.8;
      }
    }
  }
  .lists5 {
    .item {
      width: 200px;
      color: #333;
      text-decoration: none;
      border: 1px solid #eee;
      transition: all 0.5s;
      .item_pic {
        width: 200px;
        height: 200px;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          transition: all 0.5s;
        }
      }
      .item_content {
        padding: 20px 10px;
        .content {
          font-size: 14px;
        }
      }
      &:hover {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        & .item_pic img {
          transform: scale(1.1);
        }
      }
    }
  }
  .lists6 {
    .item {
      width: 200px;
      color: #333;
      text-decoration: none;
      border: 1px solid #eee;
      transition: all 0.5s;
      .item_pic {
        width: 200px;
        height: 200px;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .item_content {
        padding: 20px 10px;
        .content {
          font-size: 14px;
        }
      }
      &:hover {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-6px);
      }
    }
  }
  .lists7 {
    .item {
      width: 200px;
      color: #333;
      text-decoration: none;
      border: 1px solid #eee;
      transition: all 0.5s;
      .item_pic {
        width: 200px;
        height: 200px;
        overflow: hidden;
        background-color: #4f4f4f;
        img {
          width: 100%;
          height: 100%;
          transition: all 0.5s;
        }
      }
      .item_content {
        padding: 20px 10px;
        .content {
          font-size: 14px;
        }
      }
      &:hover {
        border: 1px solid rgb(191, 201, 228);
        & .item_pic img {
          opacity: 0.8;
        }
        & .item_content {
          color: purple;
        }
      }
    }
  }
  .lists8 {
    .box {
      position: relative;
      z-index: 1;
      display: block;
      overflow: hidden;
      background: #3085a3;
      text-align: center;
      cursor: pointer;
      img {
        width: 200px;
        height: 200px;
        opacity: 1;
        transition: opacity 0.35s, transform 0.35s;
        float: left;
      }
      &:hover img {
        opacity: 0.5;
      }
      &:hover h3 {
        transform: translate3d(0, 0, 0);
        opacity: 1;
      }
      &:hover p {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
      h3 {
        margin-top: 20%;
        transition: transform 0.35s;
        transform: translate3d(0, 20px, 0);
        opacity: 0;
        color: #fff;
        font-size: 16px;
      }
      p {
        margin: 10px 0 0;
        padding: 15px;
        border: 1px solid #fff;
        opacity: 0;
        transition: opacity 0.35s, transform 0.35s;
        transform: translate3d(0, 20px, 0) scale(1.1);
        color: #fff;
      }
    }
    .box2 {
      width: 200px;
      height: 200px;
      padding: 15px;
      position: absolute;
      box-sizing: border-box;
    }
  }
  .lists9 {
    padding: 0;
    margin: 0;
    * {
      padding: 0;
      margin: 0;
    }
    .item {
      width: 300px;
      height: 300px;
      background-color: #99aeff;
      position: relative;
      cursor: pointer;
      transition: all 0.4s ease-out;
      box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.44);
      overflow: hidden;
      color: #fff;
      img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        transition: all 0.4s ease-out;
      }
      .text {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        z-index: 99;
        position: absolute;
        padding: 30px;
      }
      h1 {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
      }
      h2 {
        margin-top: 20px;
        font-style: italic;
        transform: translateX(200px);
      }
      p {
        margin-top: 20px;
        line-height: 25px;
        transform: translateX(-200px);
        transition-delay: 0.2s;
      }
      .animate-text {
        opacity: 0;
        transition: all 0.6s ease-in-out;
      }
      &:hover {
        box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.64);
        transform: scale(1.05);
        img {
          opacity: 0.2;
        }
        .animate-text {
          transform: translateX(0);
          opacity: 1;
        }
        .dots span {
          opacity: 1;
          transform: translateY(0px);
        }
      }
      .dots {
        position: absolute;
        bottom: 20px;
        right: 30px;
        margin: 0 auto;
        width: 30px;
        height: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        span {
          width: 5px;
          height: 5px;
          background-color: #fff;
          border-radius: 50%;
          display: block;
          opacity: 0;
          transition: transform 0.4s ease-out, opacity 0.5s ease;
          transform: translateY(30px);
          &:nth-child(1) {
            transition-delay: 0.05s;
          }
          &:nth-child(2) {
            transition-delay: 0.1s;
          }
          &:nth-child(2) {
            transition-delay: 0.15s;
          }
        }
      }
    }
  }
}
